package com.atwj.dao.impl;

import com.atwj.dao.OrderDao;
import com.atwj.entity.Order;

/**
 * @author 吴先森
 * @description:
 * @create 2022-03-31 22:20
 */
public class OrderDaoImpl extends baseDao implements OrderDao {
    @Override
    public int saveOrder(Order order) {
        String sql = "insert into t_order(`order_id`,`create_time`,`price`,`status`,`user_id`) values(?,?,?,?,?)";
        return update(sql, order.getOrderId(), order.getCreateTime(), order.getPrice(), order.getStatus(), order.getUserId());
    }
}
